<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Created by CodeTlan.
 * User: Ing. Miguel Salas
 * Date: 3/11/12
 * Time: 12:55 AM
 */
class Modules extends CT_Controller
{
    function __construct(){
        parent::__construct();
        $this->load->model("module", "dao");
    }

    function getmodules(){
        $datos=array(
            "rol_k" => $this->session->getRol()
        );
        echo json_encode(array('success'=>true,'data'=>$this->dao->getModules($datos)));
    }
}
